/**
 * 
 */
package org.cuatrovientos.es;

/**
 * represents a mobile phone
 * @author daniel_ancin
 *
 */
public class Mobile extends Device {
	
	private String number;
	
	 public Mobile (String name, String brand, String price){
	 	super (name, brand, price);
	 
 }

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Mobile [name=" + name + ", brand=" + brand + ", price=" + price
				+ "]";
	}
	
	/**
	 * 
	 * @param number
	 */
	public void call (int numberToCall){
		System.out.println("Calling to: " + numberToCall);
		
	}
}
